<?php
class Zend_Controller_Action_Helper_User extends Zend_Controller_Action_Helper_Abstract {
	
	/**
	 * Check if user are already logged in.
	 */
	public function isLoggedIn() {
		$storage = new Zend_Auth_Storage_Session();
        $data = $storage->read();
        return isset($data);
	}
	
    /**
     * Return user data from session.
     */
    public function getUserData() {
        $storage = new Zend_Auth_Storage_Session();
        $data = $storage->read();
        return $data;
    }
}
?>